#ifndef MESSAGECREATIONDIALOG_H
#define MESSAGECREATIONDIALOG_H

#include <QDialog>
#include <QList>
#include <QString>
#include <QXmlQuery>
#include <QFile>
#include <xPL_NameValuePairForm.h>
#include <TemplatexPLDAO.h>

namespace Ui {
class MessageCreationDialog;
}

class MessageCreationDialog : public QDialog
{
    Q_OBJECT
private:
    QList<TemplatexPLSchema> templates;

    Ui::MessageCreationDialog *ui;
    QList<xPL_NameValuePairForm*>* nvPairList;
    QString templateFilePath;

    void initializeXml(const QString& fileName);

    void setupUi();

public:
    explicit MessageCreationDialog(const QString& fileName, QWidget *parent = 0);
    ~MessageCreationDialog();


    //void onComboMessageTypeValueChanged();

};

#endif // MESSAGECREATIONDIALOG_H
